package com.mars.deepseek.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.info.License;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * SpringDoc配置类
 */
@Configuration
public class SpringDocConfig {

    @Bean
    public OpenAPI deepSeekOpenAPI() {
        return new OpenAPI()
                .info(new Info()
                        .title("Spring Boot集成DeepSeek API接口文档")
                        .description("Spring Boot 3与DeepSeek人工智能模型集成的API文档")
                        .version("1.0.0")
                        .contact(new Contact()
                                .name("Mars")
                                .email("mars@example.com"))
                        .license(new License()
                                .name("MIT")
                                .url("https://opensource.org/licenses/MIT")));
    }
} 